﻿<html>

<head>

<!--COMMON :include style and javascript code-->
${inc:/action/pub/common}

<title>小区楼源信息</title>

</head>

<body onmouseup="hidInputValidatorTip(3);">
<!--a name="A0" id="A0"></a-->

<!--COMMON HEADER-->
${inc:/action/pub/header}

<center>

<!--filter form-->
<div id="divFilter" style="display:none;width:100%">
</div>

<!--addnew/edit form-->
<div id="divEditor" style="display:none;width:100%">
</div>

<!--insert/update response-->
<div id="divEditorResponse" style="display:none;width:100%">
</div>

<!--grid view response-->
<div id="response" style="display:none;width:100%">
</div>

<!--progress indicator-->
<div id="divStatus" class="alert" style="text-align:left; display:none;color:gray;width:150px;font-weight:bold;font-family:Arial">
	<img src="${def:context}/images/progress.gif"> 请稍候...
</div>

<!--show linked grid-->
<iframe id="detail" name="detail" marginwidth="0" scrolling="no" frameborder="0" style="height:0%;width:100%;visibility:hidden">
</iframe>

<!--用于传递当前目录到header模版中-->
<input type="hidden" name="actionroot" id="actionroot" value="${def:actionroot}">

</center>

</body>

</html>

<SCRIPT LANGUAGE="JavaScript">

//设置界面元素数据验证逻辑
function setKeyPress(){
    return true;
}

//字段校验
function checkFields(){
    return true;
}
</SCRIPT>



<script type="text/javascript">


function searchBack(){
    //document.getElementById("divFilter").style.display = "";
    return true;
}

function addNewBackSetting(){
    return true;
}

function detailHidden()
{
	parent.formHidden();
}

function getRoom(layer_no,unit_no_small,serial_no,unit_no,start_unit_no,end_unit_no)
{
	if(layer_no=="") layer_no="0";
	if(unit_no_small=="") unit_no_small="0";
	if(start_unit_no=="") start_unit_no = "1";	/*未指定起始户号,则默认为1*/
	if(end_unit_no=="") end_unit_no = unit_no_small; 	/*未指定结束户号,则默认为户单元数*/
	
	var url = "${def:actionroot}/getroom?layer_no="+layer_no+"&unit_no_small="+unit_no_small+"&serial_no="+serial_no+"&unit_no="+unit_no+"&start_unit_no="+start_unit_no+"&end_unit_no="+end_unit_no;
	ajaxCall(httpMethod="GET", 
			uri=url, 
			divResponse=null, 
			divProgress="divStatus", 
			formName=null, 
			afterResponseFn=null, 
			onErrorFn=null);
}

	//invoca la generacion de un PDF en un popup
	function openPDF()
	{
		var features = "height=500,width=800,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes";
		var url = "${def:context}${def:actionroot}/pdf?random=" + Math.random();
		var w = window.open(url, null, features);
	}

	//invoca la generacion de un Excel en un popup
	function openExcel()
	{
		var features = "height=500,width=800,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes";
		var url = "${def:context}${def:actionroot}/excel?random=" + Math.random();
		var w = window.open(url, null, features);
	}	

loadEditor();
loadFilter(search);

</script>
    